package com.rw;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 配置服务的发现和启动
 * EnableFeignClients如果你的FeignClients是用一个单独的模块的来封装的
 * 那么需要加上basePackages="org.my.pkg"扫描指定FeignClients的包
 * @author rabit
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.feign")
public class PayApplication {

    public static void main(String[] args) {
        SpringApplication.run(PayApplication.class,args);
    }
}
